package com.snow.useviewdemo.function.calendartwo;

import android.os.Bundle;

import com.necer.calendar.BaseCalendar;
import com.necer.entity.CalendarDate;
import com.necer.enumeration.SelectedModel;
import com.necer.listener.OnCalendarMultipleChangedListener;
import com.necer.utils.CalendarUtil;
import com.snow.useviewdemo.R;
import com.snow.useviewdemo.base.BaseActivity;
import com.snow.useviewdemo.databinding.ActNcalendarTestBinding;

import org.joda.time.LocalDate;

import java.util.List;

/**
 * author : zyt
 * e-mail : 632105276@qq.com
 * date   : 2020-03-09
 * desc   : 日历测试   https://github.com/yannecer/NCalendar
 */
public class NCalendarTestActivity extends BaseActivity<ActNcalendarTestBinding> {
    @Override
    protected int getLayoutId() {
        return R.layout.act_ncalendar_test;
    }

    @Override
    protected void setViewData(Bundle savedInstanceState) {
        CalendarDate s;
        CalendarUtil calendarUtil;
        mBinding.monthCalendar.setSelectedMode(SelectedModel.MULTIPLE);
        List<LocalDate> currectDateList = mBinding.monthCalendar.getCurrectDateList();
        mBinding.monthCalendar.setOnCalendarMultipleChangedListener(new OnCalendarMultipleChangedListener() {
            @Override
            public void onCalendarChange(BaseCalendar baseCalendar, int year, int month, List<LocalDate> currectSelectList, List<LocalDate> allSelectList) {

            }
        });
    }
}
